package karileet.meeting.profile.list.holder;

import android.widget.CheckBox;
import android.widget.TextView;
import karileet.meeting.profile.list.item.ScheduleListItem;

/**
 * Class representing layout object, meanwhile reflecting RowModel 
 * @author markus
 *
 */
public class ScheduleListItemHolder implements IMainListItemHolder {
    private TextView title;
    private TextView description;
    private TextView time;
    private CheckBox cb;
    private ScheduleListItem ScheduleListItem;
    
    public ScheduleListItem getTag() {
    	return ScheduleListItem; 
    }
    
    public void setTag(ScheduleListItem ScheduleListItem) {
    	this.ScheduleListItem = ScheduleListItem;
    }
    
	public TextView getTitle() {
		return title;
	}

    public void setTitle(TextView title) {
        this.title = title;
    }

	public void setTitleText(CharSequence text) {
		this.title.setText(text);
	}

    public void setTime(TextView time) {
		this.time = time;
	}
	public void setTimeText(CharSequence text) {
		this.time.setText(text);
	}
	public void setDescription(TextView description) {
		this.description = description;
	}
	public void setDescriptionText(CharSequence text) {
		this.description.setText(text);
	}
	public CheckBox getCb() {
		return cb;
	}
	public void setCb(CheckBox cb) {
		this.cb = cb;
	}	
	public void check(boolean checked) {
		this.cb.setChecked(checked);
	}
}
